# 分页模块

from rest_framework.pagination import PageNumberPagination


class PetMessagePagination(PageNumberPagination):
    # 每页显示多少个
    page_size = 10
    # 设置访问参数
    page_size_query_param = 'pageSize'
    # 最大页数不超过10
    max_page_size =100
    # 获取页码数的
    page_query_param = "currentPage"
